/************************************************/
/*												*/
/*					BattleManager.h				*/
/*												*/
/************************************************/


#ifndef BATTLE_MANAGER_H

#define BATTLE_MANAGER_H

#include "Character.h" // or whatever the character class file is called. 

/************************************************/


enum AttackResult {HIT, CRITICAL_HIT, MISS};

enum CombatResult {PLAYER_DEAD, PLAYER_ESCAPED, MONSTER_DEAD, MONSTER_SCARED};

/************************************************/


class Monster
{
  public:

    int	    strength;

    int	    dexterity;

    int	    constitution;

    int     wisdom;

    int	    charisma;

	int	    armorBonus;

    int	    armorPenalty;

    int	    minDamage;

    int	    maxDamage;

    int	    criticalMin;

    int	    criticalMult;

    int	    maxDexterity;

    int	    baseAttackBonus;

    int     hitPoints;

    string  name;

    string  armorName;

    string  weaponName;

};

/************************************************/


class BattleManager
{
  public:

      BattleManager(Character&);

	  ~BattleManager();

	  void			DispStats();
      
	  void          LoadMonsters();

      int           genRandNum();

      int           RollDie();

      AttackResult  Attack(bool, bool);

	  CombatResult	Fight();

  private:

	int				NumofMonsters;

	Monster			monster;

	Monster* 		MonsterList;

	Character* 		cPlayer;

	bool			firstRound;

	AttackResult	result; 
	
	
	int		MinDam;

	int		MaxDam;

	int		CritMult;

	int		CritMin;

	int		StrMod;	
	
};
#endif

/************************************************/
